package cn.fzkj.gulimall.product.feign;

import cn.fzkj.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/**
 * @DESCRIPTION 库存系统远程调用接口
 * @Author yaya
 * @DATE 2022/5/14
 */
@FeignClient(name = "gulimall-ware")
public interface WareFeignService {

    @RequestMapping(value = "/ware/waresku/hasStock", method = RequestMethod.POST)
    public R hasStock(@RequestBody List<Long> skuIds);
}
